﻿using BPMN.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPMN.appilcation.IService
{
    public interface IServiceBase<T> where T : class
    {
        Task<int> Add(T entity);
        Task<int> Update(T entity);
        Task<int> Delete(int id);
        Task<T> Get(int id);
        Task<IQueryable<T>> GetAll();
        Task<dynamic> GetListByPage(int pageIndex = 1, int pageSize = 2);
        Task<int> SaveChange();
    }
}
